using UnityEngine;

public class CityBuildingFirstTimePopup : MonoBehaviour
{
	public bool ShowInEditor;

	public GameObject Root;

	public const string FIRST_DONE = "VoodooCBFirstTime";

	public static bool HasBeenShown
	{
		get
		{
			return NintendoPlayerPrefs.GetInt("VoodooCBFirstTime", 0) == 1;
		}
		set
		{
			NintendoPlayerPrefs.SetInt("VoodooCBFirstTime", value ? 1 : 0);
		}
	}

	private void Start()
	{
		Root.SetActive(!HasBeenShown);
	}

	public void Hide()
	{
		HasBeenShown = true;
		Root.SetActive(value: false);
	}
}
